package com.dong.controller;

import lombok.extern.slf4j.Slf4j;
import org.eclipse.paho.client.mqttv3.logging.Logger;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.MultipartFile;

@RequestMapping("test")
@RestController
@Slf4j
public class testcontroller {

    //图片接收
    @PostMapping("getimages")
    public  String getimages(@RequestParam("file")
                             MultipartFile file){
        if(file.isEmpty()){
            log.info("接收到了空的图片");
            return  null;
        }
        return  null;
    }
}
